package com.xbongbong.pro.enums;

import com.xbongbong.i18n.util.I18nMessageUtil;
import lombok.Getter;

/**
 * 文件柜文件上传来源
 * @author 魏荣杰
 * @date 2019/7/2 17:32
 * @since v1.0
 * @version v1.00
 */
@Getter
public enum CabinetFileTypeEnum {
    /**
     *
     */
    NORMAL(0, "enum.cabinetFileType.name.normal"),
    UPLOAD(1, "enum.cabinetFileType.name.upload"),
    STAGE_UPLOAD(2,"enum.cabinetFileType.name.stage_upload"),
    ;

    private Integer type;

    private String name;

    CabinetFileTypeEnum(Integer type, String name) {
        this.type = type;
        this.name = name;
    }

    public String getName() {
        return I18nMessageUtil.getMessage(name);
    }
}
